package com.idanchuang.count

import com.idanchuang.component.base.exception.core.ExConfigure
import com.idanchuang.component.base.exception.core.ExFactory
import spock.lang.Specification


/**
 * @author Richard_yyf
 * @version 1.0 2021/3/15
 * */
class BaseCustomSpecification extends Specification {

    def setupSpec(){
        mockExFactory()
    }

    def mockExFactory() {
        ExConfigure configure = Mock()
        // 只要引用了组件的ExFactory 都需要mock这个方法
        ExFactory.configure = configure
        configure.getApplicationCode(*_) >> 0
    }
}